Android 白牌裝置讀取

一直苦惱自己的Android手機無法在MAC上當作開發機使用

因緣際會下拿到小米2當作測試機,也發生相同的狀況

因此找到了解決方法

Read More

XCode Code Snippet

Swift

Macro – macro

var <#NAME#> : <#type#> {
    get{
        return <#nil#>
    }
}
Read More

IOS KVC Custom Collection Operator

這篇的來源,源自於bou.io

Read More

IOS Adopting Modern Objective-C

Source : Adopting Modern Objective-C

Over the years, the Objective-C language has grown and evolved. Although the core concepts and practices remain the same, parts of the language have been through significant changes and improvements. These modernizations improve type safety, memory management, performance, and other aspects of Objective-C, making it easier for you to write correct code. It’s important to adopt these changes in your existing and future code to help it become more consistent, readable, and resilient.

多年來,Objective-C逐漸發展及演變。雖然核心概念和做法保持一致,部分的語言已經通過顯著的變化和改進。這些現代化(modernizations)改進了類型安全,記憶體管理,性能和Objective-C的其他方面,使您更輕鬆地編寫出正確的代碼。採用這些變化到你既有或未來的程式碼是非常重要的,讓它變得更加一致,可讀性,彈性。

Read More

IOS KVC搜尋順序

直接上CODE

Read More

IOS KVC兼容

直接先來一段CODE

Yume.h
1
2
3
4
5
6
7
8
9

@interface Yume : NSObject

@property (nonatomic, strong) NSString *yume;

-(NSString *)yume1;

@end

Read More

IOS Extension

Read More

IOS 奇妙的Code

收藏一些神奇的寫法和不錯的Code

Read More

IOS KVC 問題集

題目1

題目1
1
2
3
4
5
6
@property (nonatomic,getter=issFf) float ff;
-(float)issFf{
return _ff+3;
}

_ff = 100;
  1. self.ff = ? 103
  2. [self valueForKey:@"ff"] = ? 100
Read More

IOS Debug Log

Read More